# $Id: PKGBUILD 57925 2011-11-04 14:39:53Z stativ $
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Contributor:  TDY <tdy@gmx.com>
# Contributor: zhuqin <zhuqin83@gmail.com>

pkgname=diffuse
pkgver=0.4.6
pkgrel=1
pkgdesc="A graphical tool for merging and comparing text files"
arch=('any')
url="http://diffuse.sourceforge.net/"
license=('GPL')
depends=('pygtk')
install=$pkgname.install
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('f9139d05601987d89bfbf1e71ea30eeb')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  python2 install.py --prefix=/usr --destdir="$pkgdir"
  sed -i 's|^#!.*|&2|' "$pkgdir"/usr/bin/diffuse 
}
